﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.UI.Areas.Administration.Models.AddUserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   
   <% using (Html.BeginForm())
      {
          
       %>
    <div class= "formItem">
        <label>User Name</label>
        <%=Html.TextBoxFor(m => m.CreateUserRequest.Username) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.Username) %>
    </div>
    <div class= "formItem">
        <label>Password</label>
        <%=Html.PasswordFor(m => m.CreateUserRequest.Password) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.Password) %>
    </div>
    <div class= "formItem">
        <label>Confirm Password</label>
        <%=Html.PasswordFor(m => m.CreateUserRequest.ConfirmPassword) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.ConfirmPassword) %>
    </div>
    <div class= "formItem">
        <label>First Name</label>
        <%=Html.TextBoxFor(m => m.CreateUserRequest.FirstName) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.FirstName)%>
    </div>
    <div class= "formItem">
        <label>Last Name</label>
        <%=Html.TextBoxFor(m => m.CreateUserRequest.LastName) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.LastName)%>
    </div>
    <div class= "formItem">
        <label>Administrator</label>
        <%=Html.CheckBoxFor(m => m.CreateUserRequest.Administrator) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.Administrator)%>
    </div>
    <div class= "formItem">
        <label>Active</label>
        <%=Html.CheckBoxFor(m => m.CreateUserRequest.Active) %><br />
        <%=Html.ValidationMessageFor(m => m.CreateUserRequest.Active)%>
    </div>

    <%= Html.FormButtons(m => 
    {
        m.Submit("save", "Save");
        m.Submit("cancel", "Cancel");
    }) 
  %>
  <% 
     } %>

</asp:Content>
